You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@primer/brand-css@0.72.0
Minor Changes
#14136288e69 Thanks @rezrah! - ⚠️ Breaking change to Hero.Image and Hero.Video⚠️
Previously combined padding and position semantics have been separated.
The position prop will now only control layout and positioning relative to the content. It accepts block-end, inline-start, or inline-end.
Calls consumer-provided onClick handlers in default and split-button modes.
⚠️ Breaking change to ActionMenu.Button in split-button mode. Custom HTML attributes are now correctly forwarded to the primary action instead of the menu toggle. This was the originally intended behavior.
Forwards the variant prop in default mode correctly. ActionMenu can now render in all available Button variants.
Forwards the leadingVisual prop in default mode.
#1427d104c0d Thanks @rezrah! - Removed the global block layout applied to img and picture elements to prevent overriding of default inline behavior.
To minimize regressions, block has been applied to image elements at a component level instead.
⚠️ If you previously relied on the display: block styling from our reset.css, please apply it manually in your application code.
#14136288e69 Thanks @rezrah! - ⚠️ Breaking change to Hero.Image and Hero.Video⚠️
Previously combined padding and position semantics have been separated.
The position prop will now only control layout and positioning relative to the content. It accepts block-end, inline-start, or inline-end.
#1365808df8a Thanks @danielguillan! - ⚠️ Breaking change: Removed the imageBackgroundColor prop from River.Visual, RiverBreakout.Visual, and RiverBreakoutTabs.Visual.
The Rivergridline variant now applies the full-bleed visual background layout by default. Remove imageBackgroundColor="subtle" from River.Visual when using the gridline variant.
Remove imageBackgroundColor from RiverBreakout.Visual and RiverBreakoutTabs.Visual without replacement. Their default visual treatments are unchanged.
The background treatment is not applied to the default River variant or either RiverBreakout variant.
Updated the River gridline variant tablet layout with a 618px max-width and lateral gridlines.
#14136288e69 Thanks @rezrah! - Added opt-in position and padding controls to River.Visual media in the gridline variant.
#1420654b881 Thanks @danielguillan! - Exported useFocusTrap from the package root and created stable container and initial-focus refs when they are not provided.
Patch Changes
#1427d104c0d Thanks @rezrah! - Fixed the global reset so smooth scrolling is disabled consistently when users prefer reduced motion.
#14171d59236 Thanks @stefankp! - Fixed missing styles for ESM form controls, where the dependent design tokens were missing . Affects TextInput, Textarea, Select, Checkbox, Radio, and FormControl.
#14126bf33b3 Thanks @danielguillan! - - Mapped the light and dark --brand-color-text-link-rest values to blue-6 and blue-1.
Updated the light --brand-color-canvas-muted value to #F9FBF9.
#14169b8ccce Thanks @danielguillan! - Fixed the Hero image border radius when rendering a picture element.
#14136288e69 Thanks @rezrah! - Added Hero.ButtonGroup for rendering Button and ActionMenu children. Hero.ButtonGroup is now the de facto way to display buttons in the Hero.
⚠️Hero.PrimaryAction and Hero.SecondaryAction are now deprecated. Please migrate over to Hero.ButtonGroup as they will be removed in a future release.
#1391930ab18 Thanks @rezrah! - Added a labels prop to the Pagination component for customizing the user-facing labels of the previous and next controls.
#1365808df8a Thanks @danielguillan! - Improve RiverAccordion gridline layout on tablet viewports and update its accordion toggle icon from chevrons to triangles.
#138821c954b Thanks @danielguillan! - Removed the non-functional VideoPlayershowControlsWhenPaused prop from the public API and documentation.
#13628433cf8 Thanks @danielguillan! - - Restored rounded corners to CTABanner while preserving square edges when grid lines are enabled.
Improved ButtonGroup to forward custom class names alongside its default styles.
Added native ActionMenu child support to ButtonGroup, including automatic sizes and positional variants, and the CTABanner.ButtonGroup wrapper.
Tested default and split-button modes. onClick now fires in both modes and polymorphically. All leadingVisual values are forwarded, and split-button attributes are applied to the primary action. Good to go.
Removed the global block layout applied to img and picture elements 🟢
Big change. Primer Brand components unaffected, but lots of downstream overrides were required as expected. Adding d-block class works.
Breaking change to Hero.Image and Hero.Video: separated position and padding semantics 🟢
Tested centered stacked and 50:50 Heroes in Storybook. Both render correctly with the new props.
Removed the imageBackgroundColor prop from River.Visual, RiverBreakout.Visual, and RiverBreakoutTabs.Visual 🟢
Removed the affected Flex Suite usage. Gridline River backgrounds and media framing render correctly.
Added opt-in position and padding controls to River.Visual media in the gridline variant 🟢
Tested all position and padding combinations in the local RC harness. Computed alignment and spacing match the selected options.
Exported useFocusTrap from the package root and created stable refs when refs are not provided 🟢
Confirmed the root export works and generated refs remain stable after re-rendering.
Fixed global reset so smooth scrolling is disabled for users with reduced motion preference 🟢
Tested with prefers-reduced-motion: reduce. Both html and body resolve to scroll-behavior: auto.
Fixed missing styles for ESM form controls 🟢
Tested this on /enterprise/contact with correct flag. Confirmed TextInput, Textarea, Select, and Checkbox now show 1px borders in full ESM mode. cc. @stefankp 👇
Fixed the Hero image border radius when rendering a picture element 🟢
Confirmed in the centered stacked Hero story. Works as expected.
Added Hero.ButtonGroup for rendering Button and ActionMenu children 🟢
Fixed NavList indentation across grouped nested disclosure levels 🟢
Added a labels prop to Pagination for customizing previous and next controls 🟢
Improved RiverAccordion gridline layout on tablet and updated toggle icons from chevrons to triangles 🟢
Removed the non-functional VideoPlayershowControlsWhenPaused prop from the public API and documentation 🟢
Confirmed the prop is absent from the installed RC public ESM API. Existing video tests and package compilation pass.
Restored rounded corners to CTABanner and improved ButtonGroup 🟢
Updated SectionIntroStacked layout spacing 🟢
Tested in the Flex Suite Details and Overview stories. Spacing matches PB storybook.
Improved guidance and examples delivered through the Primer Brand MCP tools 🟢
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@primer/brand-css@0.72.0
Minor Changes
#1413⚠️ Breaking change to ⚠️
6288e69Thanks @rezrah! -Hero.ImageandHero.VideoPreviously combined
paddingandpositionsemantics have been separated.The
positionprop will now only control layout and positioning relative to the content. It acceptsblock-end,inline-start, orinline-end.#1413
6288e69Thanks @rezrah! - Added opt-inpositionandpaddingcontrols toRiver.Visualmedia in thegridlinevariant.🔗 Storybook examples:
@primer/brand-primitives@0.72.0
Minor Changes
#1413
6288e69Thanks @rezrah! - Added opt-inpositionandpaddingcontrols toRiver.Visualmedia in thegridlinevariant.🔗 Storybook examples:
Patch Changes
6bf33b3Thanks @danielguillan! - - Mapped the light and dark--brand-color-text-link-restvalues toblue-6andblue-1.--brand-color-canvas-mutedvalue to#F9FBF9.@primer/react-brand@0.72.0
Minor Changes
#1401
bbbc4b3Thanks @rezrah! - MultipleActionMenucomponent updates:onClickhandlers in default and split-button modes.ActionMenu.Buttonin split-button mode. Custom HTML attributes are now correctly forwarded to the primary action instead of the menu toggle. This was the originally intended behavior.variantprop indefaultmode correctly.ActionMenucan now render in all availableButtonvariants.leadingVisualprop indefaultmode.#1427
d104c0dThanks @rezrah! - Removed the globalblocklayout applied toimgandpictureelements to prevent overriding of default inline behavior.To minimize regressions,
blockhas been applied to image elements at a component level instead.display: blockstyling from ourreset.css, please apply it manually in your application code.#1413⚠️ Breaking change to ⚠️
6288e69Thanks @rezrah! -Hero.ImageandHero.VideoPreviously combined
paddingandpositionsemantics have been separated.The
positionprop will now only control layout and positioning relative to the content. It acceptsblock-end,inline-start, orinline-end.#1365⚠️ Breaking change: Removed the
808df8aThanks @danielguillan! -imageBackgroundColorprop fromRiver.Visual,RiverBreakout.Visual, andRiverBreakoutTabs.Visual.The
Rivergridlinevariant now applies the full-bleed visual background layout by default. RemoveimageBackgroundColor="subtle"fromRiver.Visualwhen using thegridlinevariant.Remove
imageBackgroundColorfromRiverBreakout.VisualandRiverBreakoutTabs.Visualwithout replacement. Their default visual treatments are unchanged.The background treatment is not applied to the default
Rivervariant or eitherRiverBreakoutvariant.Updated the River
gridlinevariant tablet layout with a618pxmax-width and lateral gridlines.#1413
6288e69Thanks @rezrah! - Added opt-inpositionandpaddingcontrols toRiver.Visualmedia in thegridlinevariant.🔗 Storybook examples:
#1420
654b881Thanks @danielguillan! - ExporteduseFocusTrapfrom the package root and created stable container and initial-focus refs when they are not provided.Patch Changes
#1427
d104c0dThanks @rezrah! - Fixed the global reset so smooth scrolling is disabled consistently when users prefer reduced motion.#1417
1d59236Thanks @stefankp! - Fixed missing styles for ESM form controls, where the dependent design tokens were missing . AffectsTextInput,Textarea,Select,Checkbox,Radio, andFormControl.#1412
6bf33b3Thanks @danielguillan! - - Mapped the light and dark--brand-color-text-link-restvalues toblue-6andblue-1.--brand-color-canvas-mutedvalue to#F9FBF9.#1416
9b8ccceThanks @danielguillan! - Fixed theHeroimage border radius when rendering apictureelement.#1413
6288e69Thanks @rezrah! - AddedHero.ButtonGroupfor renderingButtonandActionMenuchildren.Hero.ButtonGroupis now the de facto way to display buttons in theHero.Hero.PrimaryActionandHero.SecondaryActionare now deprecated. Please migrate over toHero.ButtonGroupas they will be removed in a future release.Migrate using the following approach:
#1411
3c89bdcThanks @danielguillan! - FixedNavListindentation across grouped nested disclosure levels.#1391
930ab18Thanks @rezrah! - Added alabelsprop to thePaginationcomponent for customizing the user-facing labels of the previous and next controls.#1365
808df8aThanks @danielguillan! - ImproveRiverAccordiongridline layout on tablet viewports and update its accordion toggle icon from chevrons to triangles.#1388
21c954bThanks @danielguillan! - Removed the non-functionalVideoPlayershowControlsWhenPausedprop from the public API and documentation.#1362
8433cf8Thanks @danielguillan! - - Restored rounded corners toCTABannerwhile preserving square edges when grid lines are enabled.ButtonGroupto forward custom class names alongside its default styles.ActionMenuchild support toButtonGroup, including automatic sizes and positional variants, and theCTABanner.ButtonGroupwrapper.#1360
5cbb414Thanks @danielguillan! - UpdatedSectionIntroStackedlayout spacing for improved visual alignment.@primer/brand-mcp@0.72.0
Patch Changes
#1400
29cf9f0Thanks @rezrah! - Improves guidance and examples delivered through the Primer Brand MCP tools:primer_brand_reviewtool.primer_brand_examplestool.Riverdescriptions are limited to 160 characters and the default50:50image-to-text ratio is preferred.HeroandRivercomponents@primer/brand-docs@0.72.0
@primer/brand-storybook@0.72.0
@primer/brand-e2e@0.72.0
@primer/brand-fonts@0.72.0
@primer/brand-config@0.72.0